/*
 * 	RESPONSE TO REQUEST MESSAGE
 *	this contains a payload based on the request
 *
 */

{
	action: "response",
	v: 0.1,
	for: "facespace.com",
	who: "peerweave.com",
	when: 1308283200,
    
	payload: [
		
		/*	Notifications:
		 *	various notifications for users on other servers
		 *	normally notices are sent by the client to the proper node,
		 *	however sometimes notifications go out to people who are not friends
		 *	therefore the server has to send the notice to other servers.
		 *	eg. i reply to a comment, where other people (who aren't my friend) have also
		 *	commented, they get notified that i wrote something
		 */
		 
		nofications: [
		
			/* FORMAT:
			 * 	type: 	describes the notification
			 * 	uid: 	who the notification is for, can be a uid or an array of uids
			 *	date:	when the notification was created
			 *	data:	an associative array of info to be used for this notification
			 */
			
			{ type: "comment", uid: ["tomasz"], data: { comment_id: 3245 } },
			{ type: "tag", uid: ["jenny"], data: { image_id: 475, uid: ["stevey", "rachel"] } },
			{ type: "relationship_approved", uid: ["nate"], date: 1308235210, data: { uid: "ian" } },
			{ type: "event_invite", uid: ["robin"], date: 1308235210, data: { event_id: 826, uid: "bobby" } },
			{ type: "event_updated", uid: ["robin"], date: 1308235210, data: { event_id: 826, uid: "bobby" } },
			{ type: "group_invite", uid: ["hector"], date: 1308235210, data: { group_id: 5421, uid: "bobby" } }
		],
		
		//response to a 'validate_client_token' request.
		validate_client_token: true
	]
}